package org.opentcs.kcvehicle.communication.kc.udp.agv.param.function.af;

import org.opentcs.kcvehicle.communication.kc.common.byteutils.ByteUtils;

public class ActionInfo {
  private byte[] src;
  //动作 ID,4个字节
  public byte[] actionId;
  //动作状态,1个字节
  public byte actionStatus;
  //预留,7个字节
  public byte[] remain;

  public ActionInfo(byte[] src) {
    this.src = src;
    this.actionId = ByteUtils.copyBytes(src, 0, 4);
    this.actionStatus = src[4];
    this.remain = ByteUtils.copyBytes(src, 5, 7);
  }
}
